const flowModules = import.meta.glob('./../flowComponents/*.vue')
const flowComponents = {};
export function initFlowComponents() {
  for (const path in flowModules) {
    let name = path.substring(path.lastIndexOf("/") + 1).split(".vue")[0];
    flowComponents[name] = defineAsyncComponent(flowModules[path]);
  }
  
}
initFlowComponents();
export function getComponent(name) {
  return flowComponents[name];
}